From 07ac4c0b8a890e2fd6169afa036f5e3efb43c6a4 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 15 Jul 2002 19:59:53 +0000 Subject: [PATCH] (scan_c_file): Warn about missing `usage' info. --- lib-src/make-docfile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 99da7b85186..124572cb899 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -722,6 +722,9 @@ scan_c_file (filename, mode) fprintf (outfile, "\n\n"); write_c_args (outfile, buf, argbuf, minargs, maxargs); } + else if (defunflag && maxargs == -1 && !saw_usage) + /* The DOC should provide the usage form. */ + fprintf (stderr, "Missing `usage' for function `%s'.\n", buf); } } eof: -- 2.30.2